package com.test;

import io.netty.channel.ChannelId;
import io.netty.channel.ChannelOption;
import io.netty.channel.DefaultChannelId;

import java.util.Map;

/**
 * @author wufagang
 * @description
 * @date 2022年07月09日 15:06
 */
public class ChannelIdDemo {

    private static final Map.Entry<ChannelOption<?>, Object>[] EMPTY_OPTION_ARRAY = new Map.Entry[0];
    public static void main(String[] args, Map<ChannelOption<?>, Object> options) {
        ChannelId channelId =  DefaultChannelId.newInstance();
        System.out.println(channelId.asLongText());
        (options).entrySet().toArray(EMPTY_OPTION_ARRAY);
    }
}
